<?php
/**
 * Created by PhpStorm.
 * User: august
 * Date: 2021/5/19
 * Time: 10:22
 */

namespace DesignPatterns\Structure\Adapter;


class AdapterObject implements ITarget
{
    private $adaptee;

    public function __construct(Adaptee $adaptee)
    {
        $this->adaptee = $adaptee;
        $adaptee->money = "$5";
    }

    public function pay()
    {
        $this->adaptee->pay();
    }

    public function notify()
    {
        echo "通知";
    }
}